package lab02.Test35;

/**
 * Created by Administrator on 2017/11/16.
 */
public class Application {
    public static void main(String[] args) {
        Manager manager = new Manager();
        manager.setSalary(10000);
        System.out.println("经理工资情况：");
        System.out.println("经理月工资："+manager.getSalary());
        System.out.println("经理工资："+manager.ComputeSalary(manager.getSalary()));
        System.out.println();
        System.out.println("销售人员工资情况：");
        SalesMan salesMan = new SalesMan();
        salesMan.setSalary(5000);
        salesMan.setCommission(0.2);
        System.out.println("销售人员基本工资："+salesMan.getSalary());
        System.out.println("销售人员提成："+salesMan.getCommission());
        System.out.println("销售人员工资："+salesMan.ComputeSalary(salesMan.getSalary(),salesMan.getCommission()));
        System.out.println();
        System.out.println("一般工人工资情况：");
        Worker worker = new Worker();
        worker.setDay_salary(190);
        worker.setDays(29);
        System.out.println("一般工人日薪："+worker.getDay_salary());
        System.out.println("一般工人工作天数："+worker.getDays());
        System.out.println("一般工人工资："+worker.ComputeSalary(worker.getDay_salary(),worker.getDays()));
    }
}
